package pl.edu.agh.student.janikhankus.earley;

import pl.edu.agh.student.janikhankus.tree.Production;

/**
 * Class representing parse production which is final (it's right side is a terminal)
 * @author tom
 *
 */
public class FinalProduction extends ParseProduction {
	private String terminal;

	public FinalProduction(int h, int dot, int i, Production p, String terminal) {
		super(0, 0, 0, null);
		this.terminal = terminal;
		isFinal = true;
	}

	/**
	 * @return Parse production right side - terminal
	 */
	public String getTerminal() {
		return terminal;
	}

}
